package com.ejar.springboot_manage.dao;

import com.ejar.springboot_manage.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;
@Mapper
public interface UserMapper {
    /**
     * 查询所有成员
     */
    public List<User> allUser();

    /**
     *增加
     */
    public boolean insert(@Param("user")User user);

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean delete(Integer id);



    public boolean updateUser(@Param("user") User user);





    public User selectByPrimaryKey(Integer id);
}
